<?php
namespace MyBase;
use Think\Model;
class BaseModel extends Model{
	/**
	 * [getRowsByCondition 通过条件获取数据库记录]
	 * @param  [array] $condition [description]
	 * @param  [type] $colums    [列]
	 * @return [type]            [description]
	 */
	public function getRowsByCondition($condition,$colums=null){

		return $this->where($condition)->field($colums)->select();

	}
}